﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace GIFT_SHOP_MVC.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        Models.GiftShop_LinQDataContext data = new Models.GiftShop_LinQDataContext();

        public ActionResult Index()
        {
            var listproduct = data.GetProductNew();
            ViewData.Model = listproduct;
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
